package com.liwei.exception;

//This program creates a custom exception type.
public class MyException extends Exception {
	/** */
	private static final long serialVersionUID = -190996414417780462L;
	private int detail;

	MyException(int a) {
		detail = a;
	}

	public String toString() {
		return " MyException[" + detail + "]";
	}
}
